<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>{$album_title}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link type="text/css" rel="stylesheet" media="screen" href="css/style.css" />
        <script type="text/javascript" src="lightbox/js/prototype.js"></script>
        <script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects,builder"></script>
        <script type="text/javascript" src="lightbox/js/lightbox.js"></script>
        <link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />
    </head>
    <body>
        <div id="head">
            <div class="navigation" style="float:left; font-size:12px;">
            <h1 style="font-size:14px; margin-left:40px;"><a href="/index.php">{$album_title}</a></h1>
            </div>
            <div class="actions" style="float:right; margin:13px 40px 13px 0;"><a href="/index.php?show_login">login</a></div>
            <div style="clear:both"></div>
        </div>
        <div id="breadcrumb">
            <ul>
                {foreach name=foo from=$navigation item=item}
                        <li><a href="{$item->getUrl()}"><img src="{if !$smarty.foreach.foo.last}/images/phclose.gif{else}/images/phopen.gif{/if}" /> {$item->getName()}</a>{if !$smarty.foreach.foo.last}  &#187; {/if}</li>
                {/foreach}
            </ul>

        </div>



        {if $folders}
            <!--<h2>Albums</h2>-->
            <div>

            {foreach from=$folders item=item}
                <div class="folder-item">
                    <a href="{$item->getUrl()}">
                        {if $item->getCoverImage()}
                            <img src="{$item->getCoverImage()}/images/phopen.gif" />
                            <br />
                        {else}
                            <img src="/images/phopen.gif" />
                        {/if}
                    </a>
                    <a href="{$item->getUrl()}">{$item->getName()} {if $show_folders_date}({$item->getCreateTime()|date_format:"%d.%m.%Y"}){/if}</a>
                </div>
            {/foreach}
            </div>
        {/if}

         <div class="clear-div"></div>

        {if $welcome}
            {$welcome}
        {/if}

        {if $images}
            <!--<h2>Images</h2>-->
            <div class="items">
            {foreach from=$images item=item}
                <div class="image-item"><a href="{$item->getLowres()}"  rel="lightbox[all]" ><img src="{$item->getThumb()}" /></a>
                <br /><strong>{$item->getName()}</strong>
                <br />{$item->getExif()->getDateTime()|date_format:"%d.%m.%Y %H:%M"}
                </div>
            {/foreach}
            </div>
        {/if}
        <div style="clear:both"></div>
        {if $show_login}
            {include file="admin.tpl"}
        {/if}
        <div id="powered-by" alt="powered by RSG"></div>
    </body>
</html>